package com.jd.sunny.java.multithreading.thread;

import org.apache.log4j.Logger;


public class ThreadA {

    /**
     * �߳̽�����ThreadA�� ThreadB
     */
    final static Logger logger = Logger.getLogger(ThreadA.class);

    /**
     * @param args
     * @throws InterruptedException
     */
    public static void main(String[] args) throws InterruptedException {

        ThreadB threadB = new ThreadB();
        threadB.start();
        synchronized (threadB) {
            logger.info("�ȴ��߳�B��������");
            threadB.wait();
            logger.info("����Ľ��Ϊ��" + threadB.total);
        }

    }

}
